package com.ea.service;

import com.ea.domain.entity.OrderFormInfo;
import com.ea.domain.entity.OrderFormLog;

import java.util.List;

/**
 * @author NAME-L
 * @Description 订单管理Service
 * @className IOrderLogService
 * @date 2022-12-14 00:10:42
 */
public interface IOrderLogService {

    /**
     * 添加订单日志
     * @param msg
     * @param orderId
     * @param operator
     */
    void insertOrderLog(String msg, Long orderId, Long logId, String operator);

    /**
     * 添加订单日志
     *
     * @param log log
     */
    void insertOrderLog(OrderFormLog log);

    /**
     * 添加订单日志
     * @param msg
     * @param info
     * @param operator
     */
    void insertOrderLog(String msg, OrderFormInfo info, String operator);

    /**
     * 批量添加订单日志
     *
     * @param logList logList
     */
    void insertBatchOrderLog(List<OrderFormLog> logList);

    /**
     * 批量添加相同订单日志
     * @param msg
     * @param orderIdList
     * @param operator
     */
    void insertBatchOrderLog(String msg, List<Long> orderIdList, String operator);

    /**
     * 根据订单id查询订单日志
     *
     * @param orderId orderId
     * @return list
     */
    List<OrderFormLog> selectOrderLogByOrderId(Long orderId);

}
